import lib.problem as problem
import lib.primes as primes

class Problem010(problem.Problem):
	def __init__(self):
		problem.Problem.__init__(self, 10)
		
	def solve(self):
		
		primesList = primes.sieve(2000000)
		sum = 0
		for prime in primesList:
			sum += prime

		return sum


if __name__ == "__main__":
	print(Problem010().solveAndTime())